<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title> 添加网址</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <link rel="shortcut icon" href="favicon.ico">
    <link href="__STATIC__/css/bootstrap.min.css" rel="stylesheet">
    <link href="__STATIC__/css/font-awesome.min.css" rel="stylesheet">
    <link href="__STATIC__/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/css/style.css" rel="stylesheet">
    <!--表单元素css-->
    <link href="__STATIC__/css/plugins/iCheck/custom.css" rel="stylesheet">

</head>

<body class="fixed-sidebar full-height-layout gray-bg">
<div id="wrapper">
    <!--左侧导航开始-->
    <include file="Public/left" title="left" />
    <!--左侧导航结束-->
    <!--右侧部分开始-->
    <div id="page-wrapper" class="gray-bg dashbard-1" style="height: auto;">
        <include file="Public/top" title="top" />
        <div class="row J_mainContent" id="content-main">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>添加信息</h5>
                    </div>
                    <div class="ibox-content">
                        <form class="reg-page sky-form form-horizontal" enctype="multipart/form-data" id="signupform" method="POST" action="{:U('Articles/insertad')}">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">输入软件ID</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" placeholder="输入软件ID" id="listid" name="listid">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">展示开始时间</label>
                                <div class="col-sm-10">
                                    <!-- <input type="text" class="form-control layer-date" placeholder="开始时间" id="startTime" name="startTime"> -->
                                    <input placeholder="开始日期" class="form-control layer-date" id="startTime" name="startTime">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">展示结束时间</label>
                                <div class="col-sm-10">
                                    <!-- <input type="text" class="form-control layer-date" placeholder="结束时间" id="endTime" name="endTime"> -->
                                    <input placeholder="结束日期" class="form-control layer-date" id="endTime" name="endTime">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">宣传语</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" placeholder="宣传语" name="remark">
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">

                                    <button type="submit" class="btn btn-info" id="submit">确定</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<!--右侧部分结束-->
</html>
<!-- 全局js -->
<script src="__STATIC__/js/jquery.min.js"></script>
<script src="__STATIC__/js/laydate/laydate.js"></script>
<script>
    laydate.render({
        elem: '#startTime',
        max: '2099-06-16 23:59:59',
        type:"datetime"
    });
    laydate.render({
        elem: '#endTime',
        max: '2099-06-16 23:59:59',
        type:"datetime"
    });
</script>
<script src="__STATIC__/js/bootstrap.min.js"></script>
<script src="__STATIC__/js/content.js"></script>
<!-- iCheck -->
<script src="__STATIC__/js/plugins/iCheck/icheck.min.js"></script>
<script src="__STATIC__/js/plugins/validate/jquery.validate.js"></script>
<script src="__STATIC__/js/plugins/validate/messages_zh.js"></script>
<script>
    $(document).ready(function() {
        $('.i-checks').iCheck({
            checkboxClass: 'icheckbox_square-green',
            radioClass: 'iradio_square-green',
        });
    });
</script>
<script type="text/javascript">
    function fileSelect() {
        document.getElementById("fileToUpload").click();
    }
    function fileSelected() {
        $('#imgppp').show();
    }
    $.validator.setDefaults({
        submitHandler: function () {
            document.getElementById("signupform").submit();

        }
    })
    $().ready(function () {
        $("#signupform").validate({
            rules: {
                listid: {
                    required: true,
                    minlength: 1,

                },

            },
            messages: {
                listid: {
                    required: "请输入软件ID",
                    minlength: "最少输入{0}个字符",

                },

            },
        });
    });
</script>